using System.Web.UI;

using Castle.Windsor;
using Castle.Windsor.Configuration.Interpreters;

using Wayloop.Fusion.Core.DataAccess;

namespace Wayloop.Fusion.Web.UI
{
    public class FusionPage : Page
    {
        public IDataContext DataContext
        {
            get
            {
                IWindsorContainer container = new WindsorContainer(new XmlInterpreter());
                
                return container.Resolve<IDataContext>("DaoFactory");
            }
        }
    }
}